﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Threading;
using System.Globalization;
using System.Resources;

using EHTWebsite.Code;

namespace EHTWebsiteProject.Controls
{
    public partial class BlogControl : System.Web.UI.UserControl
    {
        public Boolean IsVN = true;
        private String languageCode = "vi-VN";
        private ResourceManager rm = new ResourceManager("Resources.SiteMap", System.Reflection.Assembly.Load("App_GlobalResources"));

        private Int32 pageIndex = 1;
        private Int32 pageSize = 15;
        private Int32 totalRecord = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Int32 nhomDanhMucID = 4;
                this.rpDanhMucBlog.DataSource = DanhMucTinTucProvider.GetDanhMucTinTucsByNhomDanhMucID(nhomDanhMucID);
                this.rpDanhMucBlog.DataBind();
            }
        }

        public String FormatStringForUrl(String input)
        {
            return HelpMethod.FormatStringForUrl(input);
        }
    }
}